<div class="top">
    <div class="nav">
        <ul>
            <li><a href="/">首页</a></li>
            <?php foreach ($categories as $v):?>
                <li><a href="/index.php?c=news&a=lists&id=<?php echo $v['id'];?>"><?php echo $v['title'];?></a></li>
            <?php endforeach;?>
        </ul>
    </div>
</div>